-- GENERATED SPELL FOR [Vale Screecher] --


function spell0_5307(pUnit, Event) --@Sonic Burst,Self--
pUnit:FullCastSpellOnTarget(8281,pUnit)
pUnit:RegisterEvent('Sorts_5307', 6303, 1)
end

function Sorts_5307(pUnit, Event)
local choix_sorts_5307 = math.random(0, 0)
if choix_sorts_5307 == 0 then
pUnit:RegisterEvent('spell0_5307', 1, 1)
end
end

function mob5307_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5307', math.random(1500, 3000), 1)
end

function mob5307_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5307_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5307_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5307, 1, 'mob5307_Action')
RegisterUnitEvent(5307, 2, 'mob5307_Leave')
RegisterUnitEvent(5307, 3, 'mob5307_Kill')
RegisterUnitEvent(5307, 4, 'mob5307_Die')
